<?php
class m_small_stock extends Zmodel{
	function allusertypes(){
		$this->load->database();
		$sql="SELECT * FROM app_user_types ORDER BY classify_desc ASC";
		return $this->db->query($sql);
	}
	function get_company($userid){
		$this->load->database();
		$sql="SELECT * FROM app_companies WHERE user_id=".$userid;
		return $this->db->query($sql);
		/*$query = $this->db->query($sql);
            if ($query->num_rows() <= 0) {
                return null;
            } else {
            	return $query->row_array();
            }
            */
	}
}
?>